// LedSegment.h: interface for the CLedSegment class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_LEDSEGMENT_H__E53F683A_356F_11D3_BD79_00C04F9902DF__INCLUDED_)
#define AFX_LEDSEGMENT_H__E53F683A_356F_11D3_BD79_00C04F9902DF__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class CLedSegment
{
public:
	CPoint GetPoint(int nPos);
	int Create(CPoint p,int nLen,int nWidth, int nAngle=0);
	int Create(int Xpos,int Ypos,int nLen,int nWidth,int nAngle=0);
    CPoint GetFourthPoint();
	void Draw(CDC *pDC,COLORREF color);
	int GetLength();
	void Init();

    CLedSegment();
	virtual ~CLedSegment();

    // Data Members
protected:
    // 6 points define one led segment 
    int m_nPoints;
    CPoint m_Points[7];    
};

#endif // !defined(AFX_LEDSEGMENT_H__E53F683A_356F_11D3_BD79_00C04F9902DF__INCLUDED_)
